package com.qqaq.controller;

import com.qqaq.entities.CommonResponse;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import javax.sql.CommonDataSource;

@RestController
@Slf4j
public class MainController {

    @Value("${server.port}")
    private int port;

    @GetMapping("/")
    public CommonResponse index(){

        log.info("running... " + port);
        return new CommonResponse(0, "", port);
    }
}
